package videoExercises;

import java.util.TreeSet;

public class StudengGardeTest {
    public static void main(String[] args) {
        StudentGarde s1 = new StudentGarde("wm",19,106,109,60);
        StudentGarde s2 = new StudentGarde("lq",18,96,100,80);
        StudentGarde s3 = new StudentGarde("zq",20,116,100,102);
        StudentGarde s4 = new StudentGarde("sx",18,100,99,99);
        StudentGarde s5 = new StudentGarde("ws",19,96,119,99);

        TreeSet<StudentGarde> tre =new TreeSet<>();


        tre.add(s1);
        tre.add(s2);
        tre.add(s3);
        tre.add(s4);
        tre.add(s5);

        for (StudentGarde studentGarde : tre) {
            System.out.println(studentGarde);
        }
    }
}
